package io.renren.modules.blog.dao;

import io.renren.common.dao.BaseDao;
import io.renren.modules.blog.entity.BlogRouterEntity;
import io.renren.modules.sys.entity.SysMenuEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface BlogRouterDao extends BaseDao<BlogRouterEntity> {
    List<BlogRouterEntity> getAllRouterList(@Param("menuType") Integer menuType);

    List<BlogRouterEntity> getBlogRouterList(@Param(value = "userId") Long userId, @Param("menuType") Integer menuType);

    List<BlogRouterEntity> getListByPid(Long id);

    BlogRouterEntity getById(Long id);
}
